package graphics;

import java.awt.BorderLayout;
import java.awt.Graphics;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

import main.Game;

public class OldGameWindow extends JFrame {

	public static final int WINDOW_X = 1400;
	public static final int WINDOW_Y = 750;
	
	private JPanel center = new JPanel();
	//private ShipControlPanel control;
	
	public OldGameWindow() {

	}
	
	public void begin() {		
		//control = new ShipControlPanel(Game.game.getShip());
		JPanel control = new JPanel();
		//control.add(new ShipControlPanelOld(Game.game.getShip()));
		this.getContentPane().setLayout(new BorderLayout());
		this.getContentPane().add(control, BorderLayout.EAST);
		this.getContentPane().add(center, BorderLayout.CENTER);
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(WINDOW_X, WINDOW_Y);

		show();
	}
	
	public Graphics getGraphicsForPainting() {
		return center.getGraphics();
	}
	
}
